package com.yj;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.Environment;

@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
public class WikiApplication {
     private static Logger Log = LoggerFactory.getLogger(WikiApplication.class);

    public static void main(String[] args) {
        ConfigurableEnvironment environment = SpringApplication.run(WikiApplication.class, args).getEnvironment();

        Log.info("启动成功！！");
        Log.info("地址：Http://localhost:{}", environment.getProperty("server.port"));
    }

}
